mod opts;
mod csv_opts;
mod gen_pass_opts;
mod base64_opts;


mod text_opts;

use std::path::Path;
pub use opts::*;
pub use gen_pass_opts::*;
pub use csv_opts::*;
pub use base64_opts::*;


pub use text_opts::*;


pub fn check_input_file_path(path: &str) -> anyhow::Result<String, String> {
    if path == "-" || Path::new(path).exists() {
        Ok(path.to_string())
    } else {
        Err("file path is incorrect".to_string())
    }
}
